package monitor.mbean;

import monitor.connector.Connector;

public class DomainRuntimeMBean {

	public static Integer getActiveConnectionsAverageCount() {
		return Connector
				.getJDBCDataSourceRuntimeMBeanAttribute("ActiveConnectionsAverageCount");
	}

	public static Integer getActiveConnectionsCurrentCount() {
		return Connector
				.getJDBCDataSourceRuntimeMBeanAttribute("ActiveConnectionsCurrentCount");
	}

	public static Integer getActiveConnectionsHighCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("ActiveConnectionsHighCount");
	}

	public static Integer getConnectionDelayTime() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("ConnectionDelayTime");
	}

	public static Integer getConnectionsTotalCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("ConnectionsTotalCount");
	}

	public static Integer getCurrCapacity() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("CurrCapacity");
	}

	public static Integer getCurrCapacityHighCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("CurrCapacityHighCount");
	}

	public static Integer getDeploymentState() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("DeploymentState");
	}

/*	public static boolean getEnabled() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("Enabled");
	}
*/
	public static Integer getFailedReserveRequestCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("FailedReserveRequestCount");
	}

	public static Integer getFailuresToReconnectCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("FailuresToReconnectCount");
	}

	public static Integer getHighestNumAvailable() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("HighestNumAvailable");
	}

	public static Integer getHighestNumUnavailable() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("HighestNumUnavailable");
	}

	/*public static String getLastTask() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("LastTask");
	}*/

	public static Integer getLeakedConnectionCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("LeakedConnectionCount");
	}

	/*public static String getModuleId() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("ModuleId");
	}

	public static String getName() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("Name");
	}*/

	public static Integer getNumAvailable() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("NumAvailable");
	}

	public static Integer getNumUnavailable() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("NumUnavailable");
	}

	public static Integer getPrepStmtCacheAccessCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("PrepStmtCacheAccessCount");
	}

	public static Integer getPrepStmtCacheAddCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("PrepStmtCacheAddCount");
	}

	public static Integer getPrepStmtCacheCurrentSize() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("PrepStmtCacheCurrentSize");
	}

	public static Integer getPrepStmtCacheDeleteCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("PrepStmtCacheDeleteCount");
	}

	public static Integer getPrepStmtCacheHitCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("PrepStmtCacheHitCount");
	}

	public static Integer getPrepStmtCacheMissCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("PrepStmtCacheMissCount");
	}

	/*public static String getProperties() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("Properties");
	}*/

	public static Integer getReserveRequestCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("ReserveRequestCount");
	}

	/*public static String getState() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("State");
	}

	public static String getType() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("Type");
	}

	public static String getVersionJDBCDriver() {
		return Connector.getJmxJdbcDataSourceRuntimeAttribute("VersionJDBCDriver");
	}*/

	public static Integer getWaitSecondsHighCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WaitSecondsHighCount");
	}

	public static Integer getWaitingForConnectionCurrentCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WaitingForConnectionCurrentCount");
	}

	public static Integer getWaitingForConnectionFailureTotal() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WaitingForConnectionFailureTotal");
	}

	public static Integer getWaitingForConnectionHighCount() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WaitingForConnectionHighCount");
	}

	public static Integer getWaitingForConnectionSuccessTotal() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WaitingForConnectionSuccessTotal");
	}

	public static Integer getWaitingForConnectionTotal() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WaitingForConnectionTotal");
	}

	public static Integer getWorkManagerRuntimes() {
		return Connector.getJDBCDataSourceRuntimeMBeanAttribute("WorkManagerRuntimes");
	}

}